Release 10.1A: OpenEdge Application Server:
Developing AppServer Applications


Initiating the Debugger from within an AppServer session

To initiate the Debugger from an AppServer session, you must both invoke the Debugger process and set an initial breakpoint from within your remote Progress 4GL code.

Invoking the Debugger from the 4GL

To invoke the Debugger from the Progress 4GL, you must explicitly invoke the debugger using the methods of the DEBUGGER system handle executed within the AppServer code. For more information on the DEBUGGER system handle, see OpenEdge Development: Debugging and Troubleshooting and the reference entries for the handle, its methods, and its attributes in OpenEdge Development: Progress 4GL Reference .

Establishing an initial breakpoint

With remote debugging, you must programmatically set an initial breakpoint in the Progress 4GL code by using the SET-BREAK( ) method of the DEBUGGER handle. For information on the DEBUGGER handle, see OpenEdge Development: Debugging and Troubleshooting and OpenEdge Development: Progress 4GL Reference .

The following example shows how to use the INITIATE( ) and SET-BREAK( ) methods for the DEBUGGER handle:

DEFINE VARIABLE ret AS LOGICAL. 
ret = DEBUGGER:INITIATE(). 
ret = DEBUGGER:SET-BREAK(). /* SET-BREAK( ) with no parameters breaks at next 
line */ 
RETURN.  /* debugger gets control at this line */ 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095